//--------------------插入引入--------------------
import 'tinymce/plugins/image'
import 'tinymce/plugins/table'
import 'tinymce/plugins/lists'
import 'tinymce/plugins/contextmenu'
import 'tinymce/plugins/wordcount'
import 'tinymce/plugins/colorpicker'
import 'tinymce/plugins/textcolor'
import 'tinymce/plugins/paste'
import 'tinymce/plugins/link'
import 'tinymce/plugins/autoresize'
import 'tinymce/plugins/autosave'
import 'tinymce/plugins/charmap'
import 'tinymce/plugins/fullscreen'
import 'tinymce/plugins/hr'
import 'tinymce/plugins/print'
import 'tinymce/plugins/searchreplace'
import 'tinymce/plugins/preview'
import 'tinymce/plugins/pagebreak'
import 'tinymce/plugins/nonbreaking'
import 'tinymce/plugins/anchor'
import 'tinymce/plugins/advlist'
import 'tinymce/plugins/textpattern'
import 'tinymce/plugins/quickbars'

import '@npkg/tinymce-plugins/axupimgs'
import '@npkg/tinymce-plugins/table'
import '@npkg/tinymce-plugins/lineheight'
import '@npkg/tinymce-plugins/letterspacing'
import '@npkg/tinymce-plugins/indent2em'
import '@npkg/tinymce-plugins/imagetools'
import '@npkg/tinymce-plugins/importword'

import '../plugins/attachment'
import '../plugins/layout'

const usePlugin = () => {
  const plugin =
    'print preview searchreplace layout fullscreen image link table charmap hr pagebreak nonbreaking anchor advlist lists textpattern autosave  indent2em lineheight axupimgs letterspacing imagetools quickbars attachment wordcount autoresize importword'
  return plugin.split(' ').filter(Boolean)
}

export default usePlugin
